
	<!-- Page title -->
	<div id="pagetitle">
		<div class="wrapper">
			<h1>Accounting &rarr; <span>Entries</span></h1>
			<!--form action="" method="get"><input class="" type="text" id="q" name="q" /></form-->
		</div>
	</div>
	<!-- End of Page title -->
	
	<!-- Page content -->
	<div id="page">
		<!-- Wrapper -->
		<div class="wrapper">
		
			<p>&nbsp;</p>			
					
            <div class="leading clearfix">	
            	<!-- Message -->
                <div id="message-box" class="box hidden"></div>		
				
				<!-- Results -->
                <div id="results_div" class="column width8 first">
                    
                    <div class="content-box corners">
                        <header>
                            <h3><img src="<?= $this->config->item('webroot') ?>images/icons/information.png" alt="" />Accounting Entries</h3>
                        </header>
                        <section>     
                        	<form id="form-entries">                       
                            <table id="entry-list-table" class="display stylized full">
                                <thead>
                                    <tr>
                                    <th></th>
                                    <th>Entry Date</th>
                                    <th>Description</th>
                                    <th>PO #</th>
                                    <th>OR #</th>
                                    <th>RFQ #</th>
                                    <th>DR #</th>
                                    </tr>
                                </thead>
                                <tbody>                                        
                                    <?php 	
                                        foreach($acctg_entries as $acctg_entry_id => $data) : 
                                            echo "<tr class='gradeA'>";
                                    ?>
                                        
                                            <td>
                                                <a href="<?= $this->config->item('base_url') ?>accounting/edit_entry/<?= $acctg_entry_id ?>"><span class="icon icon-pencil" title="Edit">&nbsp;</span></a>
                                                <a href="#popup-delete" class="nyroModal delete-entry" id="<?= $acctg_entry_id ?>"><span class="icon icon-delete" title="Delete">&nbsp;</span></a>
                                            </td>        
                                            <td><?= $data['entry_date']; ?></td>                                    
                                            <td><a href="#popup-view" class="nyroModal" rev="modal" title="View"><?= $data['description']; ?></a></td>	
                                            <td><?= $data['customer_po_num']; ?></td>
                                            <td><?= $data['official_receipt_num']; ?></td>
                                            <td><?= $data['customer_rfq_num']; ?></td>
                                            <td><?= $data['delivery_receipt_num']; ?></td>
                                        </tr>                                            
                                        <?php endforeach; ?>
                                </tbody>
                                <tfoot>
                                    <th sty></th>
                                    <th>Entry Date</th>
                                    <th>Description</th>
                                    <th>PO #</th>
                                    <th>OR #</th>
                                    <th>RFQ #</th>
                                    <th>DR #</th>
                                </tfoot>
                            </table>             
                                               
                            <div class="clear">&nbsp;</div>
                            </form>
                        </section>
						
                    </div>                
                </div>
				<!-- End of Results -->
								           
            </div>									
		</div>
		<!-- End of Wrapper -->
		
		<!-- Popup - View Entry -->
		<?php include("_popups/view_entry.php"); ?>
		<!-- End of Popup - View Entry -->
        
        <!-- Popup - Delete Entry -->
        <div id="popup-delete" class="hidden">
			<div class="column width3 first">						
				<div class="content-box corners popup-buttons ta-center">
					<header>
						<h3><img src="<?= $this->config->item('webroot') ?>images/icons/information.png" alt="" />Delete Entry</h3>
					</header>						
					<section>
                    	<p>Are you sure you want to delete this entry?
                        <a id="button-delete-entry" class="btn btn-blue">Yes</a>
                        <a id="button-cancel" class="btn btn-red nyroModalClose">No&nbsp;</a>
                        </p>
                        <div class="clear">&nbsp;</div>
                    </section>
            	</div>
            </div>
        </div>	  
        <!-- End of Popup - Delete Entry -->
		
	</div>
	<!-- End of Page content -->
	
